FROM mhart/alpine-node:16.4

WORKDIR /node-app

COPY . /node-app

RUN npm config set registry "https://registry.npm.taobao.org/"
RUN npm config set unsafe-perm true
RUN npm install

# 下载全局pm2
RUN npm install pm2 -g

EXPOSE 3009

CMD ["npm","prd"]
